package com.qf.controller;

import com.qf.service.PointInfoService;
import com.qf.util.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * --- 万物归集  不随你我 ---
 * <p>
 * 快捷短语
 * main ==  public static void main(String[] args);
 * sout ==  System.out.println();
 *
 * @author shuhan
 * @date 2025/6/10
 * @desc
 */

@RestController
@RequestMapping("/user/point")
public class PointController {
    @Resource
    private PointInfoService pointInfoService;

    // 点击签到送积分
    @RequestMapping("/add")
    public R add(Integer pointType) {
        pointInfoService.add(pointType);
        return R.ok();
    }

}
